import runImageProcessor
reload(runImageProcessor)
import profile
import pstats
from imageProcessor import ImageProcessor

def run():
    file = "./snuppi.png"
    dirs = ["../pics"]
    box = (0, 0, 800, 800)
    columns = 100
    rows = 100
    basicUnitAsPrecentage = 20
    maximumDifference = 50
        
    imageProcessor = ImageProcessor(file)
    newImage = imageProcessor.run(dirs, box, columns, rows, basicUnitAsPrecentage, \
                     maximumDifference )
    
profile.run('run()','stats')
p = pstats.Stats('stats')
p.strip_dirs()
p.sort_stats('cumulative')
p.print_stats(25)
